package com.mipo.strategy.rolesresponsibilities;

/**
 * 环境角色类
 * @author kitty
 */
public class Context {
    //持有一个具体策略的对象
    private Strategy strategy;
    
    public Context(Strategy strategy) {
        this.strategy = strategy;
    }
    
    public void contextInterface() {
        strategy.strategyInterface();
    }
}




